home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / TerminalTools.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.8 KB  |  137 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT TerminalTools;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __TERMINALTOOLS__}
  27. {$SETC __TERMINALTOOLS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC TerminalToolsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __CONDITIONALMACROS__}
  34. {$I ConditionalMacros.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __DIALOGS__}
  37. {$I Dialogs.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __TERMINALS__}
  40. {$I Terminals.p}
  41. {$ENDC}
  42.  
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48.  
  49. CONST
  50.     tdefType                    = 'tdef';
  51.     tvalType                    = 'tval';
  52.     tsetType                    = 'tset';
  53.     tlocType                    = 'tloc';
  54.     tscrType                    = 'tscr';
  55.     tbndType                    = 'tbnd';
  56.     tverType                    = 'vers';
  57.  
  58.                                                                 {  messages  }
  59.     tmInitMsg                    = 0;
  60.     tmDisposeMsg                = 1;
  61.     tmSuspendMsg                = 2;
  62.     tmResumeMsg                    = 3;
  63.     tmMenuMsg                    = 4;
  64.     tmEventMsg                    = 5;
  65.     tmActivateMsg                = 6;
  66.     tmDeactivateMsg                = 7;
  67.     tmGetErrorStringMsg            = 8;
  68.     tmIdleMsg                    = 50;
  69.     tmResetMsg                    = 51;
  70.     tmKeyMsg                    = 100;
  71.     tmStreamMsg                    = 101;
  72.     tmResizeMsg                    = 102;
  73.     tmUpdateMsg                    = 103;
  74.     tmClickMsg                    = 104;
  75.     tmGetSelectionMsg            = 105;
  76.     tmSetSelectionMsg            = 106;
  77.     tmScrollMsg                    = 107;
  78.     tmClearMsg                    = 108;
  79.     tmGetLineMsg                = 109;
  80.     tmPaintMsg                    = 110;
  81.     tmCursorMsg                    = 111;
  82.     tmGetEnvironsMsg            = 112;
  83.     tmDoTermKeyMsg                = 113;
  84.     tmCountTermKeysMsg            = 114;
  85.     tmGetIndTermKeyMsg            = 115;
  86.  
  87.                                                                 {  messages for validate DefProc     }
  88.     tmValidateMsg                = 0;
  89.     tmDefaultMsg                = 1;
  90.  
  91.                                                                 {  messages for Setup DefProc     }
  92.     tmSpreflightMsg                = 0;
  93.     tmSsetupMsg                    = 1;
  94.     tmSitemMsg                    = 2;
  95.     tmSfilterMsg                = 3;
  96.     tmScleanupMsg                = 4;
  97.  
  98.                                                                 {  messages for scripting defProc     }
  99.     tmMgetMsg                    = 0;
  100.     tmMsetMsg                    = 1;
  101.  
  102.                                                                 {  messages for localization defProc   }
  103.     tmL2English                    = 0;
  104.     tmL2Intl                    = 1;
  105.  
  106.  
  107. TYPE
  108.     TMSearchBlockPtr = ^TMSearchBlock;
  109.     TMSearchBlock = RECORD
  110.         theString:                StringHandle;
  111.         where:                    Rect;
  112.         searchType:                TMSearchTypes;
  113.         callBack:                TerminalSearchCallBackUPP;
  114.         refnum:                    INTEGER;
  115.         next:                    TMSearchBlockPtr;
  116.     END;
  117.  
  118.     TMSetupStructPtr = ^TMSetupStruct;
  119.     TMSetupStruct = RECORD
  120.         theDialog:                DialogPtr;
  121.         count:                    INTEGER;
  122.         theConfig:                Ptr;
  123.         procID:                    INTEGER;                                {  procID of the tool  }
  124.     END;
  125.  
  126.     TMSetupPtr                            = ^TMSetupStruct;
  127. {$ALIGN RESET}
  128. {$POP}
  129.  
  130. {$SETC UsingIncludes := TerminalToolsIncludes}
  131.  
  132. {$ENDC} {__TERMINALTOOLS__}
  133.  
  134. {$IFC NOT UsingIncludes}
  135.  END.
  136. {$ENDC}
  137.